package varton;

/**
 * 促销方式C-第二件半价
 */
public class SalesCaseC implements IPrice{

    @Override
    public double actuallyAmount(double price, int num) {
        if(num >= 2){
            return price*(num-1) + price/2;
        }
        return price*num;
    }
}
